package com.demo.web.generator.tool;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.demo.web.generator.entity.${domainObjectName};
import com.demo.web.generator.params.${lowerDomainObjectName}.req.ReqDelete;
import com.demo.web.generator.params.${lowerDomainObjectName}.req.ReqSelectOne;
import com.demo.web.generator.params.${lowerDomainObjectName}.req.ReqSelectPage;
import com.demo.web.generator.params.${lowerDomainObjectName}.req.ReqUpdate;

/**
 * @author fengz
 * @version v1
 * @className ${domainObjectName}
 * @description TODO
 * @site glp.hcdlearning.com
 * @company 合得软件（上海）有限公司
 * @create ${date} ${time}
 */
public interface ${domainObjectName}Tool {

    /**
     * 根据参数 分页查询
     * @param reqSelectPage
     * @return
     */
    IPage<${domainObjectName}> selectPage(ReqSelectPage reqSelectPage);

    /**
     * 查询单条记录
     * @param reqSelectOne
     * @return
     */
    ${domainObjectName} selectOne(ReqSelectOne reqSelectOne);

    /**
     * 更新多条
     * @param reqUpdate
     * @return
     */
    int update(ReqUpdate reqUpdate);

    /**
     * 删除多条
     * @param reqDelete
     * @return
     */
    int delete(ReqDelete reqDelete);
}
